//
//  UITabBarItem+Font.m
//  BuDeJie
//
//  Created by Avril on 2020/3/30.
//  Copyright © 2020 Avril. All rights reserved.
//

#import "UITabBarItem+Font.h"

@implementation UITabBarItem (Font)

-(void)setupTabBarButtonFont:(UIFont *)font{
    
    //设置系统UITabBarButton的字体=》tabBarItem
    //富文本属性：文字字体，颜色，图文混排（html5）
    //字体
    NSMutableDictionary *attr = [NSMutableDictionary dictionary];
    attr[NSForegroundColorAttributeName] = [UIColor blueColor];
    attr[NSFontAttributeName] = font;
    [self setTitleTextAttributes:attr forState:UIControlStateNormal];
}


@end
